package com.ucode.springboot.starter.ESsearch.annotation.metadata;

/**
 * DocEsIndex 注解解析的元数据
 * @author: liliang
 * @date: 2019年12月30日 下午8:13:16
 */
public class ESDocumentData {

    private String indexname;
    
    private String idFieldName;
    
    private int numberOfShards;
    
    private int numberOfReplicas;

    public ESDocumentData(String indexname, String idFieldName, int numberOfShards, int numberOfReplicas) {
        super();
        this.indexname = indexname;
        this.idFieldName = idFieldName;
        this.numberOfShards = numberOfShards;
        this.numberOfReplicas = numberOfReplicas;
    }

    public String getIndexname() {
        return indexname;
    }

    public void setIndexname(String indexname) {
        this.indexname = indexname;
    }

    public String getIdFieldName() {
        return idFieldName;
    }

    public void setIdFieldName(String idFieldName) {
        this.idFieldName = idFieldName;
    }

    public int getNumberOfShards() {
        return numberOfShards;
    }

    public void setNumberOfShards(int numberOfShards) {
        this.numberOfShards = numberOfShards;
    }

    public int getNumberOfReplicas() {
        return numberOfReplicas;
    }

    public void setNumberOfReplicas(int numberOfReplicas) {
        this.numberOfReplicas = numberOfReplicas;
    }
    
}
